package com.saumya.robotlegs.events
{
	import flash.events.Event;
	import flash.filesystem.File;

	public class FileSearchEvent extends Event
	{
		public static const BEGIN_SEARCH:String='searchBeginEvent';
		
		private var fileRef:File=null;
		private var fileType:String='';
		
		public function FileSearchEvent(type:String='',bubbles:Boolean=false,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
		}
		
		public override function clone():Event
		{
			var evt:FileSearchEvent=new FileSearchEvent(this.type,this.bubbles,this.cancelable);
			evt.setFileReference(this.fileRef);
			evt.setFileType(this.fileType);
			return evt;
		}
		
		/////////////////////Getters and Setters///////////////////////////
		
		public function setFileReference(fRef:File):void
		{
			this.fileRef=fRef;
		}
		public function getFileReference():File
		{
			return this.fileRef;
		}
		
		public function setFileType(type:String):void
		{
			this.fileType=type;
		}
		public function getFileType():String
		{
			return this.fileType;
		}
		
	}
}